package com.aaa.common.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wang
 * @since 2020-08-14
 */
@TableName("tb_files")

public class TbFiles extends Model<TbFiles> {

    private static final long serialVersionUID = 1L;

    @TableId("file_id")
    private Integer fileId;
    /**
     * 文件原始名称
     */
    private String oldFileName;
    /**
     * 新文件名称
     */
    private String newFileName;
    /**
     * 文件后缀
     */
    private String ext;
    /**
     * 储存路径
     */
    private String path;
    /**
     * 文件大小
     */
    private long size;
    /**
     * 文件类型
     */
    private Integer tbCourseId;
    /**
     * 是否是图片
     */
    private Integer isImg;
    /**
     * 下载次数
     */
    private Integer downcounts;
    /**
     * 上传时间
     */
    private String uploadTime;


    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public String getOldFileName() {
        return oldFileName;
    }

    public void setOldFileName(String oldFileName) {
        this.oldFileName = oldFileName;
    }

    public String getNewFileName() {
        return newFileName;
    }

    public void setNewFileName(String newFileName) {
        this.newFileName = newFileName;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public Integer getTbCourseId() {
        return tbCourseId;
    }

    public void setTbCourseId(Integer tbCourseId) {
        this.tbCourseId = tbCourseId;
    }

    public Integer getIsImg() {
        return isImg;
    }

    public void setIsImg(Integer isImg) {
        this.isImg = isImg;
    }

    public Integer getDowncounts() {
        return downcounts;
    }

    public void setDowncounts(Integer downcounts) {
        this.downcounts = downcounts;
    }

    public String getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(String uploadTime) {
        this.uploadTime = uploadTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.fileId;
    }

    @Override
    public String toString() {
        return "TbFiles{" +
        "fileId=" + fileId +
        ", oldFileName=" + oldFileName +
        ", newFileName=" + newFileName +
        ", ext=" + ext +
        ", path=" + path +
        ", size=" + size +
        ", tbCourseId=" + tbCourseId +
        ", isImg=" + isImg +
        ", downcounts=" + downcounts +
        ", uploadTime=" + uploadTime +
        "}";
    }
}
